//
//  NSString+urlstring.h
//  helper
//
//  Created by huangyi on 12-10-29.
//  Copyright (c) 2012年 huangyi. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (urlstring)

-(NSData*)HTTP_GET;
-(NSData*)HTTP_GET:(NSTimeInterval)timeout;
-(NSData*)HTTP_POST:(NSData*)data timeout:(NSTimeInterval)timeout;
-(NSData*)HTTP_POST:(NSData*)data;
-(NSDictionary*)HTTP_HEAD;

-(NSDate*)rfc822date;
-(NSDate*)rfc3339date;

-(NSString*)fileURLString;

@end

extern NSURL* NSURLObj(NSString *urlstr);
